<template>
  <a :href="Props.DETAIL_URL | articleDetailFilter">
    <div class="newArticle" :style="mainStyle">
      <div class="content">
        <p class="title">老何刚刚又发表了一片新文章</p>
        <p class="article">{{ Props.TITLE }}</p>
        <span class="go">不看我亏 ></span>
      </div>
    </div>
  </a>
</template>

<script>
import { articleDetailFilter } from '../filters/userFilter'
export default {
  name: 'newArticle',
  props: {
    Props: Object
  },
  filters: {
    articleDetailFilter
  },
  computed: {
    mainStyle () {
      return {
        backgroundImage: `url(${this.Props.PIC_URL})`
      }
    }
  }
}
</script>

<style lang="less" scoped>
@import "./common/mixins.less";
.newArticle {
  .moment;
  position: relative;
  height: 187px;
  text-align: left;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

}

.title {
  font-size: 15px;/*no*/
  color: #E7D9D6;
}

.article {
  .ellipsis(2);
  font-size: 22px;/*no*/
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 15px;
  width: 160px;
  line-height: 28px;/*no*/
  color: #FFF;
}

.content {
  padding-left: 30px;
  padding-top: 36px;
}

.go {
  .go_other_font;
  background-color: #AA6857;
}
</style>
